﻿using Basic.FlowModel.DB;
using Basic.FlowRemoteModel.NodeAuditEmp.Model;
using WeDonekRpc.Client;
using WeDonekRpc.Helper.IdGenerator;
using WeDonekRpc.SqlSugar;

namespace Basic.FlowDAL.lmpl
{
    internal class FlowNodeAuditEmpDAL : BasicDAL<DBFlowNodeAuditEmp, long>, IFlowNodeAuditEmpDAL
    {
        public FlowNodeAuditEmpDAL ( IRepository<DBFlowNodeAuditEmp> basicDAL ) : base(basicDAL, "node.audit.emp")
        {
        }
        public void Add ( NodeAuditEmp data )
        {
            DBFlowNodeAuditEmp add = data.ConvertMap<NodeAuditEmp, DBFlowNodeAuditEmp>();
            add.Id = IdentityHelper.CreateId();
            this._BasicDAL.Insert(add);
        }
    }
}
